KERNELDIR := /home/xiao/linux/linux_make/mylinux/linux-imx-rel_imx_4.1.15_2.1.0_ga
CURRENT_PATH := $(shell pwd)

obj-m := input_key.o

all: 
	$(MAKE) -C $(KERNELDIR) M=$(CURRENT_PATH) ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modules
clean: 
	$(MAKE) -C $(KERNELDIR) M=$(CURRENT_PATH) ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- clean


#sudo cp input_key.o.ko /home/xiao/linux/nfs/rootfs/lib/modules/4.1.15 -f
#arm-linux-gnueabihf-gcc keyAPP.c -o keyAPP
#sudo cp keyAPP /home/xiao/linux/nfs/rootfs/lib/modules/4.1.15 -f